package com.wanho.java157.PersonalOffice.controller;


import com.wanho.java157.PersonalOffice.po.IndividualTask;
import com.wanho.java157.PersonalOffice.service.IndividualTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;



import java.util.List;


@Controller
@RequestMapping("/task")
public class IndividualtaskControll {
@Autowired
private IndividualTaskService individualTaskService;
    @RequestMapping("/list")
    public String list(Model model){
        List<IndividualTask> individualTaskList = individualTaskService.selectAll();
        model.addAttribute("individualTaskList",individualTaskList);



        return "view/personalOffice/task/index" ;
    }



}
